//
//  DataOfModel.h
//  mintHome
//
//  Created by 朱彦名 on 16/6/30.
//  Copyright © 2016年 朱彦名. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "modelOfMintHome.h"
@interface DataOfModel : NSObject
{
    sqlite3 *dbPoint;
}

- (void)openDB;

- (void)closeDB;

- (void)createTable;

- (void)insertUser:(modelOfMintHome *)user;

- (NSMutableArray *)select;

- (void)updateUserWith:(modelOfMintHome *)newUser withId:(NSInteger)likecounts;

+(DataOfModel *)shareInstance;
@end
